package com.xfcy.learning.service;

import com.xfcy.base.model.PageResult;
import com.xfcy.learning.model.dto.MyCourseTableParams;
import com.xfcy.learning.model.dto.XcChooseCourseDto;
import com.xfcy.learning.model.dto.XcCourseTablesDto;
import com.xfcy.learning.model.po.XcCourseTables;

/**
 * @author 晓风残月Lx
 * @date 2023/7/5 23:00
 */
public interface MyCourseTableService {


    /**
     * 添加选课
     * @param userId
     * @param courseId
     * @return
     */
    public XcChooseCourseDto addChooseCourseDto(String userId, Long courseId);

    /**
     * 判断学习资格
     * @param userId
     * @param courseId
     * @return
     */
    public XcCourseTablesDto getLearningStatus(String userId, Long courseId);

    /**
     * 保存选课成功
     * @param chooseCourseId
     * @return
     */
    public boolean saveChooseCourseSuccess(String chooseCourseId);


    public PageResult<XcCourseTables> mycoursetables(MyCourseTableParams params);
}
